<?php
	$stuid = $_REQUEST['stuid'];
	$conn = mysqli_connect("localhost:3306","root","171110301cwb","SMS");
	$sql = "select simage from student_roll_image where stu_imgid = $stuid";
	$result = mysqli_query($conn,$sql);
	$row = mysqli_fetch_assoc($result);
	$image = $row["simage"];
	header('Content-Type:image');
	echo $image;
?>	